package it.marco.test.service;

import it.marco.test.dao.BaseDAO;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T, ID extends Serializable> {

	public abstract void setDao(BaseDAO<T, ID> dao);
	
	public List<T> findAll();
	
	public T find(ID id);
	
	public void save(T entity);
	
	public void saveOrUpdate(T entity);
	
	public void update(T entity);
	
	public void delete(T entity);
	
	
}